package com.qijia.travel.domain;

import java.lang.reflect.Method;
import java.util.Date;

import com.qijia.travel.helper.ObjectHelper;

public class Guide implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2273092639866190630L;
	private Integer guideId;
	private String guideName;
	private String guideSex;
	private String mobile;
	private String phone;
	private Date regDate;
	private Date loginDate;
	private Integer guideType;
	private Integer guideSeq;
	
	private String treamName;
	private String statusName;
	private String belongTo;

	public String getBelongTo() {
		return belongTo;
	}

	public void setBelongTo(String belongTo) {
		this.belongTo = belongTo;
	}

	public Integer getGuideId() {
		return guideId==null?0:guideId;
	}

	public void setGuideId(Integer guideId) {
		this.guideId = guideId;
	}

	public String getGuideName() {
		return guideName;
	}

	public void setGuideName(String guideName) {
		this.guideName = guideName;
	}

	public String getGuideSex() {
		return guideSex;
	}

	public void setGuideSex(String guideSex) {
		this.guideSex = guideSex;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	public Date getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	public String getTreamName() {
		return treamName;
	}

	public void setTreamName(String treamName) {
		this.treamName = treamName;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
	
	public String toString() {
		Method[] ms = this.getClass().getDeclaredMethods();
		String s = "";
		for (Method m : ms) {
			if (m.getName().indexOf("get") != 0)
				continue;
			try {
				s += m.getName() + "-->"
						+ ObjectHelper.invokeMethod(this, m.getName()) + " \n ";
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return s;
	}

	public Integer getGuideType() {
		return guideType;
	}

	public void setGuideType(Integer guideType) {
		this.guideType = guideType;
	}

	public Integer getGuideSeq() {
		return guideSeq;
	}

	public void setGuideSeq(Integer guideSeq) {
		this.guideSeq = guideSeq;
	}
}